﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Buddy.Samples
{
    static partial class Program 
    {
        static void Samples_Ini()
        {
            var ini = new Ini();

            // sets the key 'time' (in default section 'conf')
            ini["time"] = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now);
            // gets value of the key 'time' (in default section 'conf')
            Console.WriteLine(ini["time"]);

            // sets value for key 'max-threads' in section 'init-params'
            ini["init-params", "max-threads"] = 110.ToString();
            // gets value for key 'max-threads' in section 'init-params'
            Console.WriteLine(ini["init-params", "max-threads"]);

            Console.WriteLine("press any key to continue ...");
            Console.ReadKey();
        }
    }
}
